package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysBusinessModule;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysBusinessModuleProxy extends AbstractProxyEntity<EaiSysBusinessModuleProxy, EaiSysBusinessModule> {

    private static final Class<EaiSysBusinessModule> entityClass = EaiSysBusinessModule.class;

    public static final EaiSysBusinessModuleProxy TABLE = createTable().createEmpty();

    public static EaiSysBusinessModuleProxy createTable() {
        return new EaiSysBusinessModuleProxy();
    }

    public EaiSysBusinessModuleProxy() {
    }

    /**
     * {@link EaiSysBusinessModule#getBusinessId}
     */
    public SQLStringTypeColumn<EaiSysBusinessModuleProxy> businessId() {
        return getStringTypeColumn("businessId");
    }

    /**
     * {@link EaiSysBusinessModule#getAppId}
     */
    public SQLStringTypeColumn<EaiSysBusinessModuleProxy> appId() {
        return getStringTypeColumn("appId");
    }

    /**
     * {@link EaiSysBusinessModule#getModuleId}
     */
    public SQLStringTypeColumn<EaiSysBusinessModuleProxy> moduleId() {
        return getStringTypeColumn("moduleId");
    }

    @Override
    public Class<EaiSysBusinessModule> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysBusinessModuleProxyFetcher FETCHER = new EaiSysBusinessModuleProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysBusinessModuleProxyFetcher extends AbstractFetcher<EaiSysBusinessModuleProxy, EaiSysBusinessModule, EaiSysBusinessModuleProxyFetcher> {

        public EaiSysBusinessModuleProxyFetcher(EaiSysBusinessModuleProxy proxy, EaiSysBusinessModuleProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysBusinessModule#getBusinessId}
         */
        public EaiSysBusinessModuleProxyFetcher businessId() {
            return add(getProxy().businessId());
        }

        /**
         * {@link EaiSysBusinessModule#getAppId}
         */
        public EaiSysBusinessModuleProxyFetcher appId() {
            return add(getProxy().appId());
        }

        /**
         * {@link EaiSysBusinessModule#getModuleId}
         */
        public EaiSysBusinessModuleProxyFetcher moduleId() {
            return add(getProxy().moduleId());
        }

        @Override
        protected EaiSysBusinessModuleProxyFetcher createFetcher(EaiSysBusinessModuleProxy cp, AbstractFetcher<EaiSysBusinessModuleProxy, EaiSysBusinessModule, EaiSysBusinessModuleProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysBusinessModuleProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
